<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>企业基本信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/bus/entinfo/">企业基本信息列表</a></li>
		<li class="active"><a href="${ctx}/bus/entinfo/form?id=${entinfo.id}">企业基本信息<shiro:hasPermission name="bus:entinfo:edit">${not empty entinfo.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="bus:entinfo:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="entinfo" action="${ctx}/bus/entinfo/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">企业名称：</label>
			<div class="controls">
				<form:input path="entName" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">养殖场规模：</label>
			<div class="controls">
				<form:input path="gradeType" htmlEscape="false" maxlength="50" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">法人名称：</label>
			<div class="controls">
				<form:input path="legalPerson" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">法人身份证号码：</label>
			<div class="controls">
				<form:input path="legalIdCard" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label">法人密码：</label>
			<div class="controls">
				<form:input path="legalPassword" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label">联系方式：</label>
			<div class="controls">
				<form:input path="legalPhone" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label">收款人：</label>
			<div class="controls">
				<form:input path="payee" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">bank_card：</label>
			<div class="controls">
				<form:input path="bankCard" htmlEscape="false" maxlength="30" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">开户行：</label>
			<div class="controls">
				<form:input path="openingBank" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">省市县区编码(sys_area code)冗余字段统计分析：</label>
			<div class="controls">
				<form:input path="areaCode" htmlEscape="false" maxlength="12" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">营业执照号,统一社会信用代码：</label>
			<div class="controls">
				<form:input path="cardNo" htmlEscape="false" maxlength="38" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">防疫合格证号：</label>
			<div class="controls">
				<form:input path="preventNo" htmlEscape="false" maxlength="50" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">审核状态（-1:初始状态0:未审核;1:通过;2驳回）：</label>
			<div class="controls">
				<form:input path="auditStatus" htmlEscape="false" maxlength="1" class="input-xlarge  digits"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注信息：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="20" class="input-xxlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">启用状态 0=不可用 1=可用：</label>
			<div class="controls">
				<form:input path="status" htmlEscape="false" maxlength="1" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">排序：</label>
			<div class="controls">
				<form:input path="sort" htmlEscape="false" maxlength="4" class="input-xlarge "/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="bus:entinfo:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>